package com.test.exercise.shared;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 算术题对象
 */
@Data
@EqualsAndHashCode
public class MathProblem {

    int operand1;
    int operand2;
    String operator;
    int result;
    Type type;

    @Override
    public String toString() {
        return (operand1 + operator + operand2 + "=" + result);
    }


}
